package com.young.mybatis.v2.sqlnode;

import com.young.mybatis.v2.sqlnode.iface.SqlNode;

/**
 * 描述:封装不带${}的sql信息
 *
 * @author BluceYoung
 * @create 2020-07-04 9:37
 * B站：TeacherYoung凌风
 * www.teacheryoung.com
 */
public class StaticTextSqlNode implements SqlNode {
    private String sqlText;

    public StaticTextSqlNode(String sqlText){
        this.sqlText=sqlText;
    }

    public void apply(DynamicContext context) {
        context.appendSql(sqlText);
    }
}
